package mycompiler.yuyi;

import junit.framework.TestCase;
import mycompiler.yuyi.*;

public class AnalYuyiTest extends TestCase {
	
	AnalYuyi ay;
	String s;

	protected void setUp() throws Exception {
		s = "program sd";
		ay = new AnalYuyi(s);
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testAnalyzeError() {
		TreeNode tn = null;
		String msg = null;
		String str = null;
		assertEquals(this.forTestAnalyeError(ay, tn, msg, s), true);
		//fail("Not yet implemented");
	}

	//
	public boolean forTestAnalyeError(AnalYuyi a, TreeNode t, String msg, String s)
	{
		a.AnalyzeError(t, msg, s);
		if(a.yerror == null)
		{
			return false;
		}
		else
		{
			return true;
		}
	}
}
